package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.LabelInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author xiongkunYang
 * @description 针对表【label_info(标签信息表)】的数据库操作Mapper
 * @createDate 2025-04-19 22:27:34
 * @Entity com.atguigu.lease.model.entity.LabelInfo
 */
@Mapper
public interface LabelInfoMapper extends BaseMapper<LabelInfo> {
    /**
     * 根据房间id查询所有标签信息
     *
     * @param roomId 房间id
     * @return 标签信息列表
     */
    List<LabelInfo> selectListByRoomId(Long roomId);

    /**
     * 根据公寓id查询所有标签信息
     *
     * @param apartmentId 公寓id
     * @return 标签信息列表
     */
    List<LabelInfo> selectListByApartmentId(Long apartmentId);
}




